<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
<div class="layui-form timo-compile">
    <form th:action="@{/manage/packageService/save}">
        <input type="hidden" name="packageId" th:if="${cPackage}" th:value="${cPackage.id}">
        <label class="layui-form-label required">服务名称</label>
        <div class="layui-input-inline">
            <select name="serviceId" class="select" lay-filter="custId" lay-search="">
                <option value="">请选服务</option>
                <span th:each="service:${serviceList}">
                        <option th:if="${service.id}" th:text="${service.name} "
                                th:value="${service.id}"></option>

                    </span>
            </select>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">计量单位</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="unit" placeholder="请输入计量单位"
                       th:value="${packageService?.unit}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">数量</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="quantity" placeholder="请输入数量"
                       th:value="${packageService?.quantity}">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea"
                          name="remark">[[${packageService?.remark}]]</textarea>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>